package com.dstz.demo.core.manager.impl;

import com.dstz.base.manager.impl.BaseManager;
import com.dstz.demo.core.dao.StationlineinfoDao;
import com.dstz.demo.core.manager.StationlineinfoManager;
import com.dstz.demo.core.model.Stationlineinfo;
import com.dstz.demo.core.model.StationlineinfoStationinfoVO;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 全部站点线路关联信息 Manager处理实现类
 * @author aschs
 * @email aschs@qq.com
 * @time 2020-02-16 16:48:24
 */
@Service("stationlineinfoManager")
public class StationlineinfoManagerImpl extends BaseManager<String, Stationlineinfo> implements StationlineinfoManager{
	@Resource
	StationlineinfoDao stationlineinfoDao;


	/**
	 * 查询所有线路列表
	 * @return
	 */
	public List<Stationlineinfo> all() {
		return getAlls();
	}

	/**
	 * 查询所有线路列表 封装方法
	 * @return
	 */
	private  List<Stationlineinfo> getAlls(){

		return stationlineinfoDao.getAll();
	}

	/**
	 * 线路详细
	 */
	public  List<StationlineinfoStationinfoVO> LinenoAll(String lineNo) { return stationlineinfoDao.getLinenoAll(lineNo);}

}
